<%@ page language="java" contentType="text/html; charset=UTF-8" import="com.mine.site.model.User"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="css/common.css"/>
<title>Insert title here</title>
	<%
	   User u = (User)session.getAttribute("loginUser");
	%>

</head>
<body>
<div id="header_top" >
	<div class="top_1" >
		<span><a href="#">收藏我们</a></span>
		<span><a href="#">关注我们</a></span >
	
      <div class="top_2">
    	<span><a href="#">欢迎光临本店</a></span>
        <span>
        <%
        	if(u != null){
        		%>
        		您好，<a href="PersonalServlet" style=" font-weight: bold; color:#c22;">${loginUser.name }</a>  |  <a  onclick="return confirm('确定要退出登录吗?')" href="logout"> 退出</a>
        		<% 
        	}else{
        		%>
        		<a href="login.jsp">登录</a> | 
        		<a href="register.jsp">注册</a></span>
        		<%
        	}
        %>

	  </div>
	</div>
<div  id="logo_top">
    <a href="UserServlet"><img class="logo" src="img_bg/logo.png"   /> </a>
     <div id="beader_center">
     <form action="CommodityServlet?m=byname" method="post">
    <input id="sousuo" type="text" size="25" name="Name" value="${sou }" />
    <input id="submit"  type="submit" value="搜索" />
     </form>
    <p>热门推荐:&nbsp;  <span>潮男装</span>&nbsp; <span>潮女装</span> &nbsp; <span>时尚</span></p>
    </div>

</div>
</div>
<div id="nav">
	
	<ul>
    	<li><a href="UserServlet">首页</a></li>
        <li><a href="CommodityServlet?m=all">最新上架</a></li>	
        <li><a href="mix.jsp">混搭攻略</a></li>
        <li><a href="LiuyanServlet">留言板</a></li>
        <li><a href="help.jsp">帮助中心</a></li>
        <li><a href="about.jsp">关于我们</a></li>
     </ul> 
    	
    	<!--<a href="ShoppingCartServlet?m=byname&Name=${loginUser.name }"><img src="img_bg/cat_bg.png"  /></a>
    	-->
   		<a href="ShoppingCartServlet"><img src="img_bg/cat_bg1.png"  /></a>
</div>
</body>
</html>